package com.cspg.ssss.service;

import com.cspg.ssss.domain.CheckDept;
import com.cspg.ssss.repository.CheckDeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CheckDeptService {

    @Autowired
    CheckDeptMapper checkDeptMapper;

    public List<CheckDept> getCheckDeptByCondition(Map<String,Object> condition){
        return checkDeptMapper.selectCheckDept(condition);
    }

    public List<String> getCheckDeptUsersByCondition(Map<String,Object> condition){
        return checkDeptMapper.selectCheckDeptUsers(condition);
    }
}
